import {createRouter, createWebHashHistory} from "vue-router";

let routes = [
    {
        path: '/',
        name: 'Index',
        meta: {
            name: '首页'
        },
        component: () => import('@/pages/index/index2.vue'),
    },
    {
        path: '/personalCenter',
        name: 'personalCenter',
        redirect: '/personalCenter/index',
        meta: {
            name: '个人中心'
        },
        component: () => import('@/pages/personalCenter/index.vue'),
        children: [
            {
                path: '/personalCenter/index',
                name: 'info',
                meta: {name: '个人资料'},
                component: () => import('@/pages/personalCenter/info.vue'),
            },
            {
                path: '/personalCenter/changePd',
                name: 'changePd',
                meta: {name: '修改密码'},
                component: () => import('@/pages/personalCenter/changePd.vue'),
            },
            {
                path: '/personalCenter/changePhone',
                name: 'changePhone',
                meta: {name: '修改手机'},
                component: () => import('@/pages/personalCenter/changePhone.vue'),
            },
        ]
    },
    {
        path: '/my',
        name: 'my',
        redirect: '/my/index',
        meta: {
            name: '我的'
        },
        component: () => import('@/pages/my/index.vue'),
        children: [
            {
                path: '/my/index',
                name: 'order',
                meta: {name: '订单'},
                component: () => import('@/pages/my/order.vue'),
            },
            {
                path: '/my/trade',
                name: 'trade',
                meta: {name: '交易'},
                component: () => import('@/pages/my/trade.vue'),
            },
            {
                path: '/my/collect',
                name: 'collect',
                meta: {name: '收藏'},
                component: () => import('@/pages/my/collect.vue'),
            },
            {
                path: '/my/zhengji',
                name: 'zhengji',
                meta: {name: '征集'},
                component: () => import('@/pages/my/zhengji.vue'),
            },

            {
                path: '/my/sell',
                name: 'sell',
                meta: {name: '卖出'},
                component: () => import('@/pages/my/sell.vue'),
            },
        ]
    },
    {
        path: '/industry',
        name: 'industry',
        meta: {name: '行业'},
        component: () => import('@/pages/industry/index2.vue'),
    },

    {
        path: '/industryDetail',
        name: 'industryDetail',
        meta: {name: '行业详情'},
        component: () => import('@/pages/industry/detail.vue'),
    },

    {
        path: '/gallery',
        name: 'gallery',
        meta: {name: '作品展示'},
        component: () => import('@/pages/gallery/index.vue'),
    },
    {
        path: '/creation',
        name: 'creation',
        meta: {name: '创作管理'},
        component: () => import('@/pages/creationManagement/index.vue'),
    },
    {
        path: '/creatEditer',
        name: 'creatEditer',
        meta: {name: '创作管理修改'},
        component: () => import('@/pages/creationManagement/creatEditer.vue'),
    },
    {
        path: '/creat',
        name: 'creat',
        meta: {name: '创作'},
        component: () => import('@/pages/creationManagement/creat.vue'),
    },
    {
        path: '/copyright',
        name: 'copyright',
        redirect: '/copyright/index',
        meta: {name: '版权转让首页'},
        component: () => import('@/pages/copyright/index2.vue'),
        children: [
            {
                path:'/copyright/index',
                name:'index',
                meta: {name: '版权装让'},
                component:() => import('@/pages/copyright/index.vue')
            },
            {
                path: '/copyright/copyrightTrade',
                name: 'copyrightTrade',
                meta: {name: '版权转让交易'},
                component: () => import('@/pages/copyright/trade.vue'),
            },
        ]
    },

    {
        path: '/materialLibrary',
        name: 'materialLibrary',
        meta: {name: '素材库'},
        component: () => import('@/pages/materialLibrary/index.vue'),
    },
    {
        path: '/lyrics',
        name: 'lyrics',
        meta: {name: '歌词'},
        component: () => import('@/pages/lyrics/index.vue'),
        children: [
            {
                path: '/lyrics/lyricsIndex',
                name: 'lyricsIndex',
                meta: {name: '歌词'},
                component: () => import('@/pages/lyrics/lyricsIndex/index.vue'),
            },
            {
                path: '/lyrics/lyricsCollection',
                name: 'lyricsCollection',
                meta: {name: '歌词征集令'},
                component: () => import('@/pages/lyrics/lyricsCollection/index.vue'),
            },
            {
                path: '/lyrics/lyricsCollection/collection',
                name: 'collection',
                meta: {name: '我要征集'},
                component: () => import('@/pages/lyrics/lyricsCollection/collection.vue'),
            },
            {
                path: '/lyrics/detail',
                name: 'lyricsCollectionDetail',
                meta: {name: '歌词详情'},
                component: () => import('@/pages/lyrics/lyricsCollection/detail.vue'),
            },
            {
                path: '/lyrics/singer',
                name: 'singer',
                meta: {name: '优秀歌手'},
                component: () => import('@/pages/lyrics/singer/index.vue'),
            },
            {
                path: '/lyrics/organ',
                name: 'organ',
                meta: {name: '运营机构'},
                component: () => import('@/pages/lyrics/organ/index.vue'),
            },
        ]
    },
    {
        path: '/ewm',
        name: 'ewm',
        meta: {name: '二维码'},
        component: () => import('@/pages/er_wei_ma/index.vue'),
    },
    //李炎做的内容
    {
        path: '/about',
        component: () => import('@/pages/about/about.vue')
    },

    {
        path: '/dsp',
        component: () => import('@/pages/dsp/dsp.vue'),
        children: [
            {
                path: '/dsp/authorDetail',
                component: () => import('@/pages/dsp/shi_pin_zheng_ji/authorDetail.vue'),
            },
            {
                path: '/dsp/authorList',
                component: () => import('@/pages/dsp/shi_pin_zheng_ji/authorList.vue'),
            },
            {
                path: '/dsp/zj',
                component: () => import('@/pages/dsp/shi_pin_zheng_ji/dsp_zj.vue'),
            },
            {
                path: '/dsp/dspDetail',
                component: () => import('@/pages/dsp/shi_pin_zheng_ji/dspDetail.vue'),
            },

            {
                path: '/dsp/zjDetail',
                name:'dspZjDetail',
                component: () => import('@/pages/dsp/shi_pin_zheng_ji/dsp_zj_detail.vue'),
            },

            {
                path: '/dsp/zjDetailPublisher',
                name:'zjDetailPublisher',
                component: () => import('@/pages/dsp/shi_pin_zheng_ji/dsp_zj_detail_publisher.vue'),
            },

            {
                path: '/dsp/dspJuBen',
                component: () => import('@/pages/dsp/shi_pin_zheng_ji/dsp_juben.vue'),
            },

            {
                path: '/dsp/yunying',
                component: () => import('@/pages/dsp/shi_pin_zheng_ji/yunying.vue'),
            },

            {
                path: '/dsp/videolist',
                component: () => import('@/pages/dsp/shi_pin_zheng_ji/shi_pin_hao.vue'),
            },

            {
                path: '/dsp/upArticle',
                component: () => import('@/pages/dsp/shi_pin_zheng_ji/zuo_pin_fa_bu.vue'),
            },


        ],
    },

    {
        path: '/banquan',
        component: () => import('@/pages/ban_quan_jiao_yi/banquan.vue')
    },

    {
        path:'/pay',
        component: () => import('@/pages/pay/index.vue')
    }
]
let router = createRouter({
    history: createWebHashHistory(),
    routes
});
export default router;
